<%@ page contentType="text/html; charset=utf-8" language="java"
	import="base.tools.Constants,java.util.*" errorPage=""%>
<%@ include file="taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>webTest</title>
		<script src="<%=Constants.PREFIX_PATH %>/js/jquery.js"
			type="text/javascript"></script>
		<script src="<%=Constants.PREFIX_PATH %>/js/jquery.validate.js"
			type="text/javascript"></script>
		<script src="<%=Constants.PREFIX_PATH %>/js/jquery.metadata.js"
			type="text/javascript"></script>
		<script type="text/javascript">
	function checkNull(form) {
		//	var txt=uname.TextFilter(); //调用去字符方法
		var username = $("#username").val();
		var password = $("#password").val();
		if (username == "") {
			$("#nametishi").show();
			return false;
		}
		if (password == "") {
			$("#passwordtishi").show();
			return false;
		}//else if(txt!=username){
		//$("#namebuhefa").show();
		//return false;
		//}
		else {
			form.submit();
		}
	}

	String.prototype.TextFilter = function() {
		var pattern = new RegExp("[']"); //[]内输入你要过滤的字符
		var rs = "";
		for ( var i = 0; i < this.length; i++) {
			rs += this.substr(i, 1).replace(pattern, '');
		}
		return rs;
	}
</script>
		<style type="text/css">
body {
	margin: 0;
	padding: 0;
	font-size: 12px;
}

.input {
	width: 150px;
	height: 17px;
	border-top: 1px solid #404040;
	border-left: 1px solid #404040;
	border-right: 1px solid #D4D0C8;
	border-bottom: 1px solid #D4D0C8;
}
</style>
	</head>
	<body>
		<form id="signupForm"
			action="<%=Constants.PREFIX_PATH%>/LoginAction.do" method="post"
			onsubmit="return checkfrm(this)">
			<input type="hidden" name="opt" value="user_login" />
			<table width="750" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td height="200">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td valign="top">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td>
												<table width="100%" border="0" align="center"
													cellpadding="0" cellspacing="5">
													<tr>
														<td width="91" height="40" align="right">
															<strong> 用户名：</strong>
														</td>
														<td width="211">
															<input type="text" id="username" name="username"
																vld="{required:true}" maxlength="100" class="input" />
														</td>
													</tr>
													<tr>
														<td height="40" align="right">
															<strong>密码：</strong>
														</td>
														<td>
															<input name="password" type="password" id="password"
																maxlength="32" vld="{required:true}" class="input" />
															<div id="pwerror" style="color: red">
															</div>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td>
												<input type="button" class="btn" onclick="checkNull(form)"
													value="登录" />
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
		<%@ include file="alert_message.jsp"%>
	</body>
</html>
